package cn.new18.testactivitytask.bFragment.fragb;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import cn.new18.testactivitytask.base.MyLazyFragment;

/**
 * Created by RaoWei on 2016/12/20 17:40.
 */

public class TabFragA extends MyLazyFragment {
    private static final String TAG = "lll";
    private static TabFragA mFragA;

    @Override
    protected View onCreatePage(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        TextView textView = new TextView(getContext());
        textView.setText(this.getClass().getSimpleName().toString());
        return textView;
    }

    public static Fragment getInstance() {
        if (mFragA == null) {
            mFragA = new TabFragA();
        }
        return mFragA;
    }
    @Override
    protected void pageVisibleToUser() {
        Log.e(TAG, this.getClass().toString() + ", pageVisibleToUser");
    }

    @Override
    protected void pageInvisibleToUser() {
        super.pageInvisibleToUser();
        Log.e(TAG, this.getClass().toString() + ", pageInvisibleToUser");
    }

    @Override
    protected void pagePreparedToUser() {
        super.pagePreparedToUser();
        Log.e(TAG, this.getClass().toString() + ", pagePreparedToUser");
    }
}
